Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add python bindings #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jorgehermo9
Copy link
Owner

TODO:

  • Publish on github action when releasing a new version
  • work with python dicts instead of strings
  • support only json or yaml too? like we do in javascript with the JsData struct

use pyo3::exceptions::PyValueError;
use pyo3::prelude::*;

/// Formats the sum of two numbers as string.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: better documentation xd


/// Formats the sum of two numbers as string.
#[pyfunction]
fn gq(query: &str, data: &str) -> PyResult<String> {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: this creates bindings with kwargs. Is this desirable? or should we use positional args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant